package com.jxc.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Enterprise entity. @author MyEclipse Persistence Tools
 */

public class Enterprise implements java.io.Serializable {

	// Fields

	private Integer id;
	private Enterprisetype enterprisetype;
	private String sn;
	private String name;
	private String telephone;
	private String address;
	private Set transports = new HashSet(0);
	private Set users = new HashSet(0);
	private Set purchases = new HashSet(0);

	// Constructors

	/** default constructor */
	public Enterprise() {
	}

	/** full constructor */
	public Enterprise(Enterprisetype enterprisetype, String sn, String name,
			String telephone, String address, Set transports, Set users,
			Set purchases) {
		this.enterprisetype = enterprisetype;
		this.sn = sn;
		this.name = name;
		this.telephone = telephone;
		this.address = address;
		this.transports = transports;
		this.users = users;
		this.purchases = purchases;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Enterprisetype getEnterprisetype() {
		return this.enterprisetype;
	}

	public void setEnterprisetype(Enterprisetype enterprisetype) {
		this.enterprisetype = enterprisetype;
	}

	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Set getTransports() {
		return this.transports;
	}

	public void setTransports(Set transports) {
		this.transports = transports;
	}

	public Set getUsers() {
		return this.users;
	}

	public void setUsers(Set users) {
		this.users = users;
	}

	public Set getPurchases() {
		return this.purchases;
	}

	public void setPurchases(Set purchases) {
		this.purchases = purchases;
	}

}